/*
 * @Description: 登录相关操作
 * @Author: iamsmiling
 * @Date: 2021-06-16 07:33:43
 * @LastEditTime: 2021-06-16 07:33:52
 */
import 'package:credit_business_circle/domain/provider/login_api.dart';
import 'package:credit_business_circle/domain/remote/user/user_profile_entity.dart';

class LoginRepository {
  LoginAPI _api = LoginAPI();

  Future<UserProfileEntity> login(Map<String, dynamic> params) {
    return _api.login(params).then((value) {
      return UserProfileEntity.fromJson();
    });
  }
}
